home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
United Public Domain Gold 4
/
United Public Domain Gold 4.iso
/
scope
/
sc174.dms
/
sc174.adf
/
Complex
/
COMPLEX.DOC
< prev
next >
Wrap
Text File
|
1991-02-13
|
2KB
|
31 lines
This program is used for solving a system of simultaneous equations with
complex (or regular) coefficients. This is a common practice in electrical
engineering, especially when working with ac circuits. I wrote this program
in basic originally for a PC6 Tandy pocket computer, and have adapted it
for use here on the Amiga. There are other programs which can solve complex
coefficient systems of equations, like Matlab, but they are big and hard
to use. Besides, this program is in Basic, which is easily customized to
suit the user. Basic, like most other languages (with the exception of
Fortran) does not have a complex data type. This program splits the
N by N complex matrix into 2 N by N regular coefficient matrices. This
does take a while to compute on a big system, but most of the time, a
reasonable system (say N=4) only takes a couple of seconds to compute. The
answers are given in two formats, the first is the standard a + j B, and
the other is in polar form, a magnitude and angle. The angle shown that
is not in parenthesis are the direct result of the Inverse Sine (also
not directly available in Basic, but easily computed). The angle shown
in parenthesis is the angle referenced to the +x axis, and measured
counter-clockwise around the quadrants. I also have a version of this
program that runs on the PC6 pocket computer. If anyone would like the
source code (it will be a text file) let me know. Any feedback on this
program (good or bad) would be appreciated.
Dan Warns 11/11/90
2704 32nd Street
Lubbock, Texas 79410
806-792-8266
Compu$erve Id: 72060,101
Genie Id: D.WARNS